import {
    CHANGE_INPUT_VALUE,
    ADD_TODO_ITEM,
    DELETE_TODO_ITEM,
    INIT_LIST_ACTION,
    GET_INIT_LIST
} from './actionTypes' 

export const getInputChangeAction = (value) => {
    return {
        type: CHANGE_INPUT_VALUE,
        value
    } 
}

export const getIAddItemAction = () => {
    return {
        type: ADD_TODO_ITEM 
    } 
}

export const getIDeleteItemAction = (index) => {
    return {
        type: DELETE_TODO_ITEM,
        index
    } 
}

export const initListAction = (data) =>{
    return {
        type: INIT_LIST_ACTION,
        data
    } 
} 

export const getInitListAction = () => {
    return {
        type: GET_INIT_LIST
    } 
}